package com.kxmall.rider.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.kxmall.common.annotation.ExcelDictFormat;
import com.kxmall.common.convert.ExcelDictConvert;
import lombok.Data;


/**
 * 配送员订单信息视图对象 kx_rider_order
 *
 * @author kxmall
 * @date 2023-09-21
 */
@Data
@ExcelIgnoreUnannotated
public class KxRiderOrderVo {

    private static final long serialVersionUID = 1L;

    /**
     * 配送员订单主键ID
     */
    @ExcelProperty(value = "配送员订单主键ID")
    private Long id;

    /**
     * 配送状态
     */
    @ExcelProperty(value = "配送状态")
    private Integer status;

    /**
     * 配送订单异常原因
     */
    @ExcelProperty(value = "配送订单异常原因")
    private String reason;

    /**
     * 配送员主键
     */
    @ExcelProperty(value = "配送员主键")
    private Long riderId;

    /**
     * 用户信息
     */
    @ExcelProperty(value = "用户信息")
    private Long userId;

    /**
     * 收货人
     */
    @ExcelProperty(value = "收货人")
    private String consignee;

    /**
     * 电话
     */
    @ExcelProperty(value = "电话")
    private String phone;

    /**
     * 省
     */
    @ExcelProperty(value = "省")
    private String province;

    /**
     * 市
     */
    @ExcelProperty(value = "市")
    private String city;

    /**
     * 区（县）
     */
    @ExcelProperty(value = "区", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "县=")
    private String county;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String mono;

    /**
     * 仓库主键ID
     */
    @ExcelProperty(value = "仓库主键ID")
    private Long storageId;

    /**
     * 仓库名称
     */
    @ExcelProperty(value = "仓库名称")
    private String storeName;

    /**
     * 订单id
     */
    @ExcelProperty(value = "订单id")
    private Long orderId;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 商品总价
     */
    @ExcelProperty(value = "商品总价")
    private BigDecimal totalPrice;

    /**
     * 优惠总价
     */
    @ExcelProperty(value = "优惠总价")
    private BigDecimal totalPreferentialPrice;

    /**
     * 配送费
     */
    @ExcelProperty(value = "配送费")
    private BigDecimal freightPrice;

    /**
     * 支付方式
     */
    @ExcelProperty(value = "支付方式")
    private String payChannel;

    /**
     * 支付时间
     */
    @ExcelProperty(value = "支付时间")
    private Date payTime;

    /**
     * 下单时间
     */
    @ExcelProperty(value = "下单时间")
    private Date orderCreateTime;

    /**
     * 预计送达时间
     */
    @ExcelProperty(value = "预计送达时间")
    private Date predictTime;

    /**
     * 是否异常
     */
    @ExcelProperty(value = "是否异常")
    private Long abnormal;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private BigDecimal latitude;

    /**
     * 实际送达时间
     */
    @ExcelProperty(value = "实际送达时间")
    private Date finishTime;


    /**
     * 商品集合
     */
    private List<KxRiderItemVo> riderItemVoList;

}
